import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";
import "./registerServiceWorker";
import "./assets/js/common/jquery-3.2.1";
import "./assets/js/common/flexible";
import "./assets/js/common/fastclick.min";
import layer from "./assets/js/common/layer";
import appKeyWords from "./assets/js/app_rizhi/appKeywords";
import cookies from "./assets/js/app_rizhi/cookies";
import md5 from "js-md5";
import VueAwesomeSwiper from "vue-awesome-swiper";
import "swiper/dist/css/swiper.css";
import "./assets/css/reset.css";
import "./assets/js/common/need/layer.css";
import "./assets/css/animate.css";

Vue.config.productionTip = false;
Vue.prototype.$axios = axios;
Vue.prototype.$md5 = md5;
Vue.prototype.$layer = layer;
Vue.prototype.$appKeyWords = appKeyWords;
Vue.prototype.$cookies = cookies;
// axios.defaults.baseURL =
//   process.env.NODE_ENV === "production" ? "https://hn2.api.okayapi.com" : "/";
new Vue({
  router,
  store,
  axios,
  md5,
  layer,
  cookies,
  VueAwesomeSwiper,
  appKeyWords,
  render: h => h(App),
  mounted() {
    const s = document.createElement("script");
    s.type = "text/javascript";
    s.src = "https://at.alicdn.com/t/font_851008_uiseha319ms.js";
    document.body.appendChild(s);
  }
}).$mount("#app");
